<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖车 - <{$setting.title}></title>
<meta content="<{$setting.keywords}>"  name="keywords"/>
<meta content="<{$setting.description}>" name="description"/>
<link href="<{$weburl}>/templates/default/<{$setting.templates}>/css/page.css" rel="stylesheet" type="text/css"/>
    <link href="<{$weburl}>/templates/default/<{$setting.templates}>/css/index.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<{$weburl}>/static/js/jquery.js"></script>
<script src="<{$weburl}>/static/js/jquery-ui-1.10.0/ui/jquery.ui.core.js"></script>
<script src="<{$weburl}>/static/js/jquery-ui-1.10.0/ui/jquery.ui.widget.js"></script>
<script src="<{$weburl}>/static/js/jquery-ui-1.10.0/ui/jquery.ui.mouse.js"></script>
<script src="<{$weburl}>/static/js/jquery-ui-1.10.0/ui/jquery.ui.sortable.js"></script>
<link rel="stylesheet" href="<{$weburl}>/admin/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="<{$weburl}>/admin/kindeditor/kindeditor-all.js"></script>
<script charset="utf-8" src="<{$weburl}>/admin/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="<{$weburl}>/static/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="<{$weburl}>/static/js/laydate/laydate.js"></script>
<script type="text/javascript">

$(function(){
   //品牌选择
	$("#brand").change(function(){
		$.get("<{$weburl}>/index.php?m=ajax&ajax=1", {
			brandid :  $("#brand").val() 
		}, function (data, textStatus){
               $("#subbrand").html(data); // 把返回的数据添加到页面上
			}
		);
	});
	//品牌选择
	$("#subbrand").change(function(){
		$.get("<{$weburl}>/index.php?m=ajax&ajax=1", {
			subbrandid :  $("#subbrand").val() 
		}, function (data, textStatus){
               $("#subsubbrand").html(data); // 把返回的数据添加到页面上
			}
		);
	});
	<{if $setting.version==3}>
	//城市选择
	$("#province").change(function(){
		$.get("<{$weburl}>/index.php?m=ajax&ajax=1", {
			cityid :  $("#province").val() 
		}, function (data, textStatus){
			$("#city").html(data); // 把返回的数据添加到页面上
		});
	});
	<{/if}>
	//表单验证
	$(".carform").Validform({
		tiptype:3,
		datatype:{
			"price": /^\d{1,4}(\.\d{1,2})?$/,
			"zh":/^[\u4e00-\u9fa5]+$/,
			"gas":/^\d{1,3}(\.\d{1,2})?$/

		}
	});

	//图片删除
	$("#piclist li div span").live('click', function(){
		$.get("<{$weburl}>/index.php?m=sellcar&ajax=1",{
			p_pic :  $(this).next().val()
		}, function (data, textStatus){
			$("li").remove("#"+data);
		});
	});

	//设为封面
	$("#piclist li p span").live('click', function(){
		$(this).parent().parent().children('.img').addClass("selected");
		$(this).parent().parent().siblings().children('.img').removeClass("selected");
		$("#mainpic").empty();
		$("#mainpic").append('<input type="hidden" name="p_mainpic" value="'+$(this).next().val()+'">');
	});
	KindEditor.ready(function(K) {
	  var editor = K.editor({
		  uploadJson : '/index.php?m=upload_car',
		  allowFileManager : false,
		  imageUploadLimit : <{$setting.uploadlimit}>,
		  imageSizeLimit : <{$setting.sizelimit}>+'MB'
	  });
		K('#J_selectImage').click(function() {
		var inputArr = $("#piclist").children("li");
		var length = inputArr.length;
		if(length>=<{$setting.uploadlimit}>){
			alert("您最多只能上传"+<{$setting.uploadlimit}>+"张图片！");
			exit;
		}
			editor.loadPlugin('multiimage', function() {
				editor.plugin.multiImageDialog({
				clickFn : function(urlList) {
						var div = K('#piclist');
						K.each(urlList, function(i, data) {
							var arr_picid = data.url.split("/");
							var arr_length = arr_picid.length;
							var arr_picids = arr_picid[arr_length-1].split(".");
							div.append('<li id="'+arr_picids[0]+'"><img src="' + data.url + '" class="vt img"><div><span class="del"></span><input type="hidden" name="p_pics[]" value="'+ data.url +'"></div><p><span>设为封面</span><input type="hidden" name="url" value="'+ data.url +'"></p></li>');
						});
						editor.hideDialog();
					}
				});
			});
		});
	});
});
</script>
</head>
<body>
<!--内容--> 
<{include file="default/`$setting.templates`/head.html"}>


<div class="nav">您当前的位置：<a href="<{$weburl}>/">首页</a> <span>></span> 商家</div>
<!--<div class="main clearfix mt10">-->
    <!--<div class="main_left">-->
        <!--<div class="dealerbox">-->
            <!--<div class="dealer_tab">-->
                <!--<ul>-->
                    <!--<li <{if $shoptype==""}>class="here"<{/if}>><a href="<{$weburl}>/<{if $setting.ishtml==1}>dealer/<{else}>index.php?m=dealer<{/if}>">全部</a></li>-->
                    <!--<{foreach from=$dealer_category key=skey item=category}>-->
                    <!--<li <{if $shoptype==$skey}>class="here"<{/if}>><a href="<{$weburl}>/<{if $setting.ishtml==1}>dealer/<{$skey}><{else}>index.php?m=dealer&s=<{$skey}><{/if}>"><{$category}></a></li>-->
                    <!--<{/foreach}>-->
                <!--</ul>-->
            <!--</div>-->
            <!--<div class="box">-->
                <!--<ul class="dealerlist clearfix">-->
                    <!--<{foreach from=$dealerlist key=skey item=dealer_list}>-->
                    <!--<li>-->
                        <!--<p class="company"><a href="<{$weburl}>/<{if $setting.ishtml==1}>shop/<{$dealer_list.id}><{else}>index.php?m=shop&id=<{$dealer_list.id}><{/if}>" class="fb" target="_blank"><{$dealer_list.company}></a></p>-->
                        <!--<p>联系电话：<{$dealer_list.mobilephone}> <{$dealer_list.tel}></p>-->
                        <!--<p>联系地址：<{$dealer_list.address}></p>-->
                    <!--</li>-->
                    <!--<{/foreach}>-->
                <!--</ul>-->
                <!--<div class="page_list"><{$button_basic}></div>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->



<div class="main mt15">
    <div class="indexbox clearfix">
        <div class="left">
            <h3><a href="<{$weburl}><{if $setting.ishtml==1}>/newstype/1<{else}>index.php?m=news&catid=1<{/if}>" class="more">更多</a>二手车行情</h3>
            <div class="box">
                <ul class="newslist">
                    <{foreach from=$newslist.1 item=newslist1}>
                    <li><a href="<{$newslist1.n_url}>" target="_blank"><{$newslist1.shorttitle}></a></li>
                    <{/foreach}>
                </ul>
            </div>
        </div>
        <div class="left">
            <h3><a href="<{$weburl}>/<{if $setting.ishtml==1}>newstype/2<{else}>index.php?m=news&catid=2<{/if}>" class="more">更多</a>交易过户</h3>
            <div class="box">
                <ul class="newslist">
                    <{foreach from=$newslist.2 item=newslist2}>
                    <li><a href="<{$newslist2.n_url}>" target="_blank"><{$newslist2.shorttitle}></a></li>
                    <{/foreach}>
                </ul>
            </div>
        </div>
        <div class="left">
            <h3><a href="<{$weburl}>/<{if $setting.ishtml==1}>newstype/3<{else}>index.php?m=news&catid=3<{/if}>" class="more">更多</a>汽车养护</h3>
            <div class="box">
                <ul class="newslist">
                    <{foreach from=$newslist.3 item=newslist3}>
                    <li><a href="<{$newslist3.n_url}>" target="_blank"><{$newslist3.shorttitle}></a></li>
                    <{/foreach}>
                </ul>
            </div>
        </div>
        <div class="right">
            <h3><a href="<{$weburl}>/<{if $setting.ishtml==1}>newstype/4<{else}>index.php?m=news&catid=4<{/if}>" class="more">更多</a>驾驶技巧</h3>
            <div class="box">
                <ul class="newslist">
                    <{foreach from=$newslist.4 item=newslist4}>
                    <li><a href="<{$newslist4.n_url}>" target="_blank"><{$newslist4.shorttitle}></a></li>
                    <{/foreach}>
                </ul>
            </div>
        </div>
    </div>
</div>





<!--版权--> 
<{include file="default/`$setting.templates`/foot.html"}>
</body>
</html>
